package com.ncst.mvcweb.dao;

import com.ncst.mvcweb.entity.ProductOrder;
import com.ncst.mvcweb.entity.User;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ProductOrderPageDao extends PagingAndSortingRepository<ProductOrder, Integer> {
    Page<ProductOrder> findProductOrdersByOrderUser(User user, Pageable pageable);
}
